Skip to content

[PWGEM,PWGEM-36] PM: add config to store all daughters of all interes…#15975

Merged
mhemmer-cern merged 1 commit intoAliceO2Group:masterfrom
mhemmer-cern:PWGEM-36
Apr 27, 2026
Merged

[PWGEM,PWGEM-36] PM: add config to store all daughters of all interes…#15975
mhemmer-cern merged 1 commit intoAliceO2Group:masterfrom
mhemmer-cern:PWGEM-36

Conversation

@mhemmer-cern
Copy link
Copy Markdown
Collaborator

@mhemmer-cern mhemmer-cern commented Apr 27, 2026

…ting particles

  • Add config doStoreAllDaughters to store all daughters from photon, pi0, eta, eta' and omega.
  • Add config maxPt and maxY which enables to change maximum rapidity and pT for BinnedGenPts table, was hardcoded previously!
  • Add function selectMothersToStore to reduce redundancy in the code
  • Add function selectDaughtersToStore to work with the new config doStoreAllDaughters
  • Use std::unordered_map instead of std::map where possible to reduce look up time.
  • Add new struct Counter to make the code part regarding particle and event counter more clear. Previously this was done by a C array instead.

…ting particles

- Add config `doStoreAllDaughters` to store all daughters from photon, pi0, eta, eta' and omega.
- Add config `maxPt` and `maxY` which enables to change maximum rapodity and pT for BinnedGenPts table, was hardcoded previously!
- Add function `selectMothersToStore` to reduce redundancy in the code
- Add function `selectDaughtersToStore` to work with the new config `doStoreAllDaughters`
- Use `std::unordered_map` instead of `std::map` where possible to reduce look up time.
- Add new struct `Counter` to make the code part regarding particle and event counter more clear. Previously this was done by a C array instead.
@github-actions github-actions Bot added pwgem photon Photon and neutral meson PAG label labels Apr 27, 2026
@github-actions
Copy link
Copy Markdown

O2 linter results: ❌ 9 errors, ⚠️ 16 warnings, 🔕 4 disabled

@mhemmer-cern mhemmer-cern marked this pull request as ready for review April 27, 2026 09:16
@mhemmer-cern mhemmer-cern enabled auto-merge (squash) April 27, 2026 09:16
Copy link
Copy Markdown
Collaborator

@alibuild alibuild left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-approving on behalf of @mhemmer-cern.

@mhemmer-cern mhemmer-cern merged commit 2d172bd into AliceO2Group:master Apr 27, 2026
16 of 18 checks passed
@mhemmer-cern mhemmer-cern deleted the PWGEM-36 branch April 27, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

photon Photon and neutral meson PAG label pwgem

Development

Successfully merging this pull request may close these issues.

2 participants